@()(implicit request: RequestHeader)
@main("任务管理") {

	<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/tableFilter.css")">

	<script src="@routes.Assets.at("bootstrap-table-master/dist/extensions/filter-control/my-bootstrap-table-filter-control.js")" type="text/javascript"></script>

	<style>
			.genome-pre {
				white-space: pre-wrap;
				word-wrap: break-word;
				border: 0px solid #ccc;
				background-color: white;
			}

			select:not([multiple]) {
				-webkit-appearance: none;
				-moz-appearance: none;
				background-position: right 50%;
				background-repeat: no-repeat;
				background-image: url();
				padding: .5em;
				padding-right: 1.5em
			}

	</style>

	<div class="row">
		<div class="form-group col-sm-12">
			<h2 class="page-heading"
			style="text-align: left;
				border-bottom: 5px solid #e9f3f4">任务管理</h2>
		</div>
	</div>

	<div class="page-content">

		<div class="table-responsive">

			<div style="display: none;
				margin-bottom: 10px">筛选条件：
				<span id="filterCondition">

				</span>
			</div>

			<div style="display: none;
				margin-bottom: 10px">排序条件：
				<span id="sortCondition">

				</span>
			</div>

			<table class="display table table-bordered" id="table" data-pagination="true"
			data-page-list="[10, 25, 50, 100, all]" >
				<thead>

					<tr class="myTr">

					</tr>

				</thead>
			</table>

			<div id="allFilterContent">

			</div>

		</div>

		<div id="updateModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog" style="width: 650px">
				<div class="modal-content">
					<div class="modal-header bg-primary">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
						<h4 class="modal-title">
							<i class="fa fa-edit"></i>
							<span id="lblAddTitle" style="font-weight: bold">修改任务名</span>
						</h4>
					</div>
					<form class="form-horizontal" id="form" action="" data-toggle="validator">
						<div class="modal-body">
							<div class="row-fluid">

								<input hidden name="missionId">

								<div class="form-group">
									<label class="control-label col-sm-3">原始任务名:</label>
									<div class="col-sm-6">
										<input class="form-control" name="orignalMissionName" readonly/>
									</div>
								</div>


								<div class="form-group">
									<label class="control-label col-sm-3">新任务名:</label>
									<div class="col-sm-6">
										<input class="form-control" name="missionName" />
									</div>
								</div>

							</div>
						</div>
						<div class="modal-footer bg-info">
							<input type="hidden" id="id" name="id" />
							<button type="button" class="btn blue myUpdate">
								确定</button>
							<button type="button" class="btn green" data-dismiss="modal">
								取消</button>
						</div>
					</form>
				</div>
			</div>
		</div>


	</div>


	<script>

			$(function () {
				MissionManage.init


			})
	</script>


}